package com.atguigu.gulimall.ware.rabbit.constant;

/**
 * @Description
 * @Author lhj
 * @Date 2024/5/18 11:02
 */
public class WareConstant {

    /**
     * 库存交换机名称
     */
    public static final String STOCK_EVENT_EXCHANGE = "stock-event-exchange";
    /**
     * 延迟队列名称
     */
    public static final String STOCK_DELAY_QUEUE = "stock.delay.queue";
    /**
     * 延迟队列路由键
     */
    public static final String STOCK_DELAY_ROUTING_KEY = "stock.locked";

    /**
     * 释放库存队列名称
     */
    public static final String STOCK_RELEASE_QUEUE = "stock.release.queue";
    /**
     * 释放库存队列路由键
     */
    public static final String STOCK_RELEASE_ROUTING_KEY = "stock.release.#";

    /**
     * 订单交换机
     */
    public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";

    /**
     * 订单释放解锁库存路由键
     */
    public static final String ORDER_RELEASE_OTHER_ROUTING_KEY = "order.release.other.#";
    
}
